//
//  PartCollectCell.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2019/1/4.
//  Copyright © 2019 Gox_WallyDiao. All rights reserved.
//

import UIKit

class PartCollectCell: UICollectionViewCell {
    var backView:UIView = {
       let view = UIView.init()
        view.backgroundColor = RGB_Same(243)
        view.layer.cornerRadius = 3
        return view
    }()
    var label:UILabel = {
        let label = UILabel.init()
        label.text = "--"
        label.font = FONT(11)
        label.textColor = RGB_Same(53)
        label.textAlignment = .center
        return label
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUI()
    }
    
    func setUI() {
        
        self.contentView.addSubview(self.backView)
        self.contentView.addSubview(self.label)
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
        
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        self.backView.frame = FRAME_CGFloat((SCREEN_WIDTH / 4 - 65) / 2, 10, 65, 22)
        self.label.frame = FRAME_CGFloat((SCREEN_WIDTH / 4 - 65) / 2, 10, 65, 22)
    }
    
}
